import { axiosRequest } from '@/utils/request'
import { dataModulePrefix } from '../../config'

/**
 * 运行中压停电线段临时表分页查询
 * @param {*} param
 */
export const getYxzyXdTempListPage = (param) => {
    return axiosRequest(`${dataModulePrefix}/yx-zytdxd-temp/listByPage`, '运行中压停电线段临时表分页查询', 'POST', param)
}

/**
 * 运行中压停电线段临时表添加
 * @param {*} param
 */
export const addYxzyXdTemp = (param) => {
    return axiosRequest(`${dataModulePrefix}/yx-zytdxd-temp/addBatch`, '运行中压停电线段临时表添加', 'POST', param)
}

/**
 * 运行中压停电线段临时表修改
 * @param {*} param
 */
export const updateYxzyXdTemp = (param) => {
    return axiosRequest(`${dataModulePrefix}/yx-zytdxd-temp/update`, '运行中压停电线段临时表修改', 'POST', param)
}

/**
 * 运行中压停电线段临时表批量删除
 * @param {*} param
 */
export const deleteYxzyXdTemp = (param) => {
    return axiosRequest(`${dataModulePrefix}/yx-zytdxd-temp/deleteBatch`, '运行中压停电线段临时表批量删除', 'POST', param)
}

/**
 * 运行中压停电线段分页查询
 * @param {*} param
 */
export const getYxzyXdListPage = (param) => {
    return axiosRequest(`${dataModulePrefix}/yx-zytdxd/listByPage`, '运行中压停电线段分页查询', 'POST', param)
}
